# -*- coding: utf-8 -*-
# -*- coding:utf-8 -*-
import os
from flask import Flask, jsonify
from models import db

app = Flask(__name__)
db.init_app(app)
app_settings = os.getenv('APP_SETTINGS')
debug = os.getenv('FLASK_DEBUG')
if debug == '1':
    app_settings = 'project.config.DebugConfig'
app.config.from_object(app_settings)

# print app.config


@app.route('/ping', methods=['GET'])
def ping_pong():
    return jsonify({
        'status': 'success',
        'message': 'pong!!'
    })
